package com.example.easybuy.entity;

import java.util.List;
import java.util.Map;

/*
 * 购物车对象*/
public class Car {
    private String id;
    private double totalPrice;
    private int totalNum;
    private Map<String,CarDetail> productMap;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public double getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(double totalPrice) {
        this.totalPrice = totalPrice;
    }

    public int getTotalNum() {
        return totalNum;
    }

    public void setTotalNum(int totalNum) {
        this.totalNum = totalNum;
    }

    public Map<String, CarDetail> getProductMap() {
        return productMap;
    }

    public void setProductMap(Map<String, CarDetail> productMap) {
        this.productMap = productMap;
    }
}
